﻿
@{
    Layout = null;
}

<html>
<head>
    <title>Index</title>
    <script src="~/Scripts/jquery-3.3.1.js"></script>
</head>
<body>
    <div>
        <input type="text" placeholder="请输入验证码" id="txtCaptcha" /> &nbsp;
        <img alt="点击图片更换验证码" title="点击图片更换验证码" src="/Home/CaptchaImage" onclick="this.src = '/Home/CaptchaImage?id=' + new Date().getTime()"  
              style="cursor: pointer; -webkit-user-select: none">
        <p><input type="button" value="提交" onclick="Check()" /></p>
    </div>
    <script type="text/javascript">
    function Check() {
        $.post("/Home/Check", { Captcha: $("#txtCaptcha").val() }, function (result) {
            alert(result);
        });
    }
    </script>
</body>
</html>